export {}

function unArr<T>(arr:T[]){
    return [...new Set(arr)]
}
console.log(unArr<number>([1,1,1,2,2,2,3]));
const newArr=unArr<number>([1,1,1,2,2,2,3])

function sumFn(arr:number[]){
    return arr.reduce((cur,item)=>cur+item,0)
}
const sum=sumFn(newArr)
console.log(sum);

